//
//  CCFindHeadCollectionViewCell.m
//  CwinCar
//
//  Created by dlios on 15/10/16.
//  Copyright © 2015年 dlios. All rights reserved.
//

#import "CCFindHeadCollectionViewCell.h"

@implementation CCFindHeadCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        self.image = [[UIImageView alloc] initWithFrame:CGRectMake(10 * suitableScreen_Width, 0, 30 * suitableScreen_Width, 30 * suitableScreen_Width)];
        [self.contentView addSubview:self.image];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(10 * suitableScreen_Width, 30 * suitableScreen_Width, 30 *suitableScreen_Width, 20 * suitableScreen_Width)];
        [self.label setFont:[UIFont systemFontOfSize:12.0]];
        [self.contentView addSubview:self.label];
        
            }
    return self;
}


- (void)getFind:(CCFindModel *)model
{
    [self.image sd_setImageWithURL:[NSURL URLWithString:model.img]placeholderImage:[UIImage imageNamed:@"zhanweitu"]];
    [self.label setText:model.name];
}

@end
